package com.teamall.web.xxgl.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class AidReportDataArg {
    private String pk_name = "REPORT_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<AidReportDataCriteria> oredCriteria;

    public AidReportDataArg() {
        oredCriteria = new ArrayList<AidReportDataCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<AidReportDataCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(AidReportDataCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public AidReportDataCriteria or() {
    	AidReportDataCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public AidReportDataCriteria createCriteria() {
    	AidReportDataCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected AidReportDataCriteria createCriteriaInternal() {
    	AidReportDataCriteria criteria = new AidReportDataCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<AidReportDataCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<AidReportDataCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<AidReportDataCriterion> getAllCriteria() {
            return criteria;
        }

        public List<AidReportDataCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new AidReportDataCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidReportDataCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidReportDataCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new AidReportDataCriterion(condition, value1, value2));
        }

        public AidReportDataCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportIdIsNull() {
            addCriterion("REPORT_ID is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdIsNotNull() {
            addCriterion("REPORT_ID is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdEqualTo(Integer value) {
            addCriterion("REPORT_ID =", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotEqualTo(Integer value) {
            addCriterion("REPORT_ID <>", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdGreaterThan(Integer value) {
            addCriterion("REPORT_ID >", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_ID >=", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdLessThan(Integer value) {
            addCriterion("REPORT_ID <", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_ID <=", value, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdLeftLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotLeftLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdRightLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotRightLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdIn(List<Integer> values) {
            addCriterion("REPORT_ID  in ", values, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotIn(List<Integer> values) {
            addCriterion("REPORT_ID not in ", values, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_ID between ", value1, value2, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportIdNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_ID not between ", value1, value2, "REPORT_ID");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportYearIsNull() {
            addCriterion("REPORT_YEAR is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearIsNotNull() {
            addCriterion("REPORT_YEAR is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearEqualTo(Integer value) {
            addCriterion("REPORT_YEAR =", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotEqualTo(Integer value) {
            addCriterion("REPORT_YEAR <>", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearGreaterThan(Integer value) {
            addCriterion("REPORT_YEAR >", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_YEAR >=", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearLessThan(Integer value) {
            addCriterion("REPORT_YEAR <", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_YEAR <=", value, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearLeftLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotLeftLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearRightLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotRightLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearIn(List<Integer> values) {
            addCriterion("REPORT_YEAR  in ", values, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotIn(List<Integer> values) {
            addCriterion("REPORT_YEAR not in ", values, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_YEAR between ", value1, value2, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportYearNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_YEAR not between ", value1, value2, "REPORT_YEAR");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportMonthIsNull() {
            addCriterion("REPORT_MONTH is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthIsNotNull() {
            addCriterion("REPORT_MONTH is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthEqualTo(Integer value) {
            addCriterion("REPORT_MONTH =", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotEqualTo(Integer value) {
            addCriterion("REPORT_MONTH <>", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthGreaterThan(Integer value) {
            addCriterion("REPORT_MONTH >", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_MONTH >=", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthLessThan(Integer value) {
            addCriterion("REPORT_MONTH <", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_MONTH <=", value, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthLeftLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotLeftLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthRightLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotRightLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthIn(List<Integer> values) {
            addCriterion("REPORT_MONTH  in ", values, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotIn(List<Integer> values) {
            addCriterion("REPORT_MONTH not in ", values, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_MONTH between ", value1, value2, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_MONTH not between ", value1, value2, "REPORT_MONTH");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportWeekIsNull() {
            addCriterion("REPORT_WEEK is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekIsNotNull() {
            addCriterion("REPORT_WEEK is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekEqualTo(Integer value) {
            addCriterion("REPORT_WEEK =", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotEqualTo(Integer value) {
            addCriterion("REPORT_WEEK <>", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekGreaterThan(Integer value) {
            addCriterion("REPORT_WEEK >", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_WEEK >=", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekLessThan(Integer value) {
            addCriterion("REPORT_WEEK <", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_WEEK <=", value, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekLeftLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotLeftLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekRightLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotRightLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekIn(List<Integer> values) {
            addCriterion("REPORT_WEEK  in ", values, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotIn(List<Integer> values) {
            addCriterion("REPORT_WEEK not in ", values, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_WEEK between ", value1, value2, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_WEEK not between ", value1, value2, "REPORT_WEEK");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportDateIsNull() {
            addCriterion("REPORT_DATE is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateIsNotNull() {
            addCriterion("REPORT_DATE is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateEqualTo(Date value) {
            addCriterion("REPORT_DATE =", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotEqualTo(Date value) {
            addCriterion("REPORT_DATE <>", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateGreaterThan(Date value) {
            addCriterion("REPORT_DATE >", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateGreaterThanOrEqualTo(Date value) {
            addCriterion("REPORT_DATE >=", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateLessThan(Date value) {
            addCriterion("REPORT_DATE <", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateLessThanOrEqualTo(Date value) {
            addCriterion("REPORT_DATE <=", value, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateLeftLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotLeftLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateRightLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotRightLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateIn(List<Date> values) {
            addCriterion("REPORT_DATE  in ", values, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotIn(List<Date> values) {
            addCriterion("REPORT_DATE not in ", values, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateBetween(Date value1, Date value2) {
            addCriterion("REPORT_DATE between ", value1, value2, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDateNotBetween(Date value1, Date value2) {
            addCriterion("REPORT_DATE not between ", value1, value2, "REPORT_DATE");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportDepartmentIsNull() {
            addCriterion("REPORT_DEPARTMENT is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentIsNotNull() {
            addCriterion("REPORT_DEPARTMENT is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT =", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT <>", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentGreaterThan(String value) {
            addCriterion("REPORT_DEPARTMENT >", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT >=", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentLessThan(String value) {
            addCriterion("REPORT_DEPARTMENT <", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentLessThanOrEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT <=", value, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentLeftLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotLeftLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentRightLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotRightLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentIn(List<String> values) {
            addCriterion("REPORT_DEPARTMENT  in ", values, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotIn(List<String> values) {
            addCriterion("REPORT_DEPARTMENT not in ", values, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentBetween(String value1, String value2) {
            addCriterion("REPORT_DEPARTMENT between ", value1, value2, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportDepartmentNotBetween(String value1, String value2) {
            addCriterion("REPORT_DEPARTMENT not between ", value1, value2, "REPORT_DEPARTMENT");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andReportStaffIsNull() {
            addCriterion("REPORT_STAFF is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffIsNotNull() {
            addCriterion("REPORT_STAFF is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffEqualTo(Integer value) {
            addCriterion("REPORT_STAFF =", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotEqualTo(Integer value) {
            addCriterion("REPORT_STAFF <>", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffGreaterThan(Integer value) {
            addCriterion("REPORT_STAFF >", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_STAFF >=", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffLessThan(Integer value) {
            addCriterion("REPORT_STAFF <", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_STAFF <=", value, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffLeftLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotLeftLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffRightLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotRightLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffIn(List<Integer> values) {
            addCriterion("REPORT_STAFF  in ", values, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotIn(List<Integer> values) {
            addCriterion("REPORT_STAFF not in ", values, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_STAFF between ", value1, value2, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andReportStaffNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_STAFF not between ", value1, value2, "REPORT_STAFF");
            return (AidReportDataCriteria) this;
        }
        public AidReportDataCriteria andAttachmentIsNull() {
            addCriterion("ATTACHMENT is null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentIsNotNull() {
            addCriterion("ATTACHMENT is not null");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentEqualTo(String value) {
            addCriterion("ATTACHMENT =", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotEqualTo(String value) {
            addCriterion("ATTACHMENT <>", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentGreaterThan(String value) {
            addCriterion("ATTACHMENT >", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentGreaterThanOrEqualTo(String value) {
            addCriterion("ATTACHMENT >=", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentLessThan(String value) {
            addCriterion("ATTACHMENT <", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentLessThanOrEqualTo(String value) {
            addCriterion("ATTACHMENT <=", value, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 1);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentLeftLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotLeftLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 0);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentRightLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotRightLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 2);
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentIn(List<String> values) {
            addCriterion("ATTACHMENT  in ", values, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotIn(List<String> values) {
            addCriterion("ATTACHMENT not in ", values, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentBetween(String value1, String value2) {
            addCriterion("ATTACHMENT between ", value1, value2, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

        public AidReportDataCriteria andAttachmentNotBetween(String value1, String value2) {
            addCriterion("ATTACHMENT not between ", value1, value2, "ATTACHMENT");
            return (AidReportDataCriteria) this;
        }

    }

    public static class AidReportDataCriteria extends GeneratedCriteria {

        protected AidReportDataCriteria() {
            super();
        }
    }

    public static class AidReportDataCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected AidReportDataCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected AidReportDataCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected AidReportDataCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected AidReportDataCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected AidReportDataCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected AidReportDataCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}